
//
//  ServerAddress.h
//  Toyohu
//
//  Created by GuoPeng on 16/4/22.
//  Copyright © 2016年 celia. All rights reserved.
//

#ifndef ServerAddress_h
#define ServerAddress_h


//#define NetworkServer   @"http://192.168.0.13:3001/api"
#define NetworkServer   @"http://123.59.152.197:3001/api"


#define GETCODE         @"/LoginVerifies/getCode"
#define Login           @"/Parents/quickLogin"
#define AddInfo         @"/Parents/addInfo"
#define GetTodayInfo    @"/Articles/getTodayInfo"
#define GetNews         @"/Articles/getNews"
#define FinishTasks     @"/TaskLogs"
#define GetTags         @"/HotTags/getTags"
#define GetExperts      @"/Experts/getList"
#define GetVerify       @"/LoginVerifies/getVerify"
#define CheckValidateCode   @"/LoginVerifies/checkValidateCode"

#define Search @"/Articles/searchArticle"

#define GetExpertInfo    @"/Experts/getInfo"

#define ChangePhoneNum  @"/Parents/changePhoneNum"


#define UpdateChildren  @"/Parents/updateChildren"

#define GetExpertByName  @"/Experts/getExpertByName"


#define UpdateChildren  @"/Parents/updateChildren"
//通过名字查找专家
#define GetExpertByName  @"/Experts/getExpertByName"

#define LikeExpert    @"/ParentLikes/likeExpert"

//关注
#define FocusExpert   @"/ParentFavExperts/subscription"
#define NotFocusExpert  @"/ParentFavExperts/subscriptionCancel"
#define SetHeadUrl      @"/Parents/setHeadUrl"
#define GetUploadToken  @"/LoginVerifies/getUploadToken"
#define GetParms     @"/Items/getParams"
//发布文章
#define PublishArticle  @"/CustomArticles/publish"
//发布评论
#define PublishComment   @"/Comments/publish"
//获取社区列表
#define GetCommunityList    @"/CustomArticles/getList"
//获取社区文章
#define GetCommunityArticle  @"/CustomArticles/getArticle"
//#define GetArticle           @"/CustomArticles/getArticle"


//---------------------------SVProgressHUD--------
#define SHOW_ERROR [SVProgressHUD showErrorWithStatus:[NSString stringWithFormat:@"%@",[[responseObject objectForKey:@"msg"] isEqual:[NSNull null]] ? @"不好意思，出错啦-.-" : [responseObject objectForKey:@"msg"]] maskType:SVProgressHUDMaskTypeGradient];
#define SHOW_NTERROR [SVProgressHUD showErrorWithStatus:@"网络在开小差哦~\(≧▽≦)/~"];
#define SHOW_STATUS [SVProgressHUD showWithStatus:@"请稍等..." maskType:SVProgressHUDMaskTypeGradient];
#define SHOW_HIDDEN [SVProgressHUD dismiss];

#endif /* ServerAddress_h */
